/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 * 
 * @file:   Channel.Config.js
 * @path:   js-src/StatisticOcr/
 * @desc:   StatisticOcr公共配置集合，键值对象
 *          一级键名大写，之间名采用驼峰式
 * @author: zhang@qiyi.com
 * @date:   2016-03-28
 */
///import js-src/lib/
///import js-src/com/
qui(function(require, exports, module){
        StatisticOcr.Config = $.extend({}, Ancestor.Config, {

            TABLE_COLMODEL_CONFIG: {
                id: {
                    name: 'id',
					index:'id',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },

                channelId: {
                    name: 'channelId',
					index:'channelId',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },

                channelName: {
                    name: 'channelName',
					index:'channelName',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },

                programId: {
                    name: 'programId',
					index:'programId',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },

                programName: {
                    name: 'programName',
					index:'programName',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },

                statisticTime: {
                    name: 'statisticTime',
                    index:'statisticTime',
                    title: false,
					sortable: false,
                    width: 150,
                    align: 'center'
                },

                categoryName: {
                    name: 'categoryName',
                    index: 'categoryName',
                    width: 100,
					align: 'center',
                    title: false,
					sortable: false
                },

                user: {
                    name: 'user',
					index:'user',
                    width: 100,
					align: 'center',
                    sortable: false,
                    title: false
                },

                ocrReturnTitle: {
                    name: 'ocrReturnTitle',
                    index: 'ocrReturnTitle',
                    title: false,
                    width: 200,
                    align: 'center',
                    sortable: false
                },

                userSubmitTitle: {
                    name: 'userSubmitTitle',
                    index: 'userSubmitTitle',
                    title: false,
                    width: 200,
                    sortable: false,
					align: 'center'
                },

			   isSameTitle: {
                    name: 'isSameTitle',
                    index: 'isSameTitle',
                    title: false,
                    width: 100,
					align: 'center',
					sortable: false
                },

                realSamePercent: {
                    name: 'realSamePercent',
                    index: 'realSamePercent',
                    title: false,
                    sortable: false,
                    width: 100,
					align: 'center'
                }

            },

            TABLE: { //列表配置
                url: '/api/statisticOcr/list',
				//datatype:"jsonp",
				multiselect: false,
					
				loadtext:'加载中...',
				loadui:'block',
				rowNum:20,

                loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },
				
				prmNames :{
					 page:"pageNo",
					 rows:"pageSize"
				 },

                colNames: ["ID", "频道ID", "频道", "节目ID", "节目原名", "创建时间", "频道", "制作人员", "OCR提示标题", "编辑输入标题", "是否匹配", "匹配百分比"],

                colModel: ['id','channelId', 'channelName', 'programId', 'programName', 'statisticTime', 'categoryName', 'user', 'ocrReturnTitle', 'userSubmitTitle', 'isSameTitle',
                    'realSamePercent']
            },

            TABLE_HIDDEN: {
                colNames: ["频道ID", "频道", "节目ID", "节目原名", "创建时间", "频道", "制作人员", "OCR提示标题", "编辑输入标题", "是否匹配", "匹配百分比"],

                colModel: ['channelId', 'channelName', 'programId', 'programName', 'statisticTime', 'categoryName', 'user', 'ocrReturnTitle', 'userSubmitTitle', 'isSameTitle',
                    'realSamePercent']

            }
        });
	}
);